﻿using System;
using System.Collections.Generic;

namespace ScriptProject
{
    //一定要特别注意，:后面只允许有1个Unity主工程的类或者接口，但是可以有随便多少个热更DLL中的接口
    public class TestInheritance : TestClassBase
    {
        private int _a;

        public TestInheritance()
        {
            _a = 321;
        }

        public TestInheritance(int a) : base(a)
        {
            _a = a;
        }

        public override void TestAbstract(int gg)
        {
            UnityEngine.Debug.Log("!! TestInheritance.TestAbstract gg =" + _a);
        }

        public override void TestVirtual(string str)
        {
            base.TestVirtual(str);
            UnityEngine.Debug.Log("!! TestInheritance.TestVirtual str =" + str);
        }

        public static TestInheritance NewObject()
        {
            return new TestInheritance(123);
        }

        public static void TestObject()
        {
            var obj = new TestInheritance(123);
            obj.TestAbstract(555);
        }

    }
}
